<?php

namespace YouBaoLian\Application\Info;

class Info
{
    public function getInfo(): array
    {
        return [];
    }

    protected function empty(array $array, array $ignore = [])
    {
        foreach ($array as $key => $value) {
            if (empty($value) and !in_array($key, $ignore)) {
                unset($array[$key]);
            }
        }
        return $array;
    }
}
